﻿using DosTexPrj.Core.Models;
using FluentNHibernate.Mapping;

namespace DosTexPrj.Implement.NHibernate.Mapping
{
    public class FarbicTypeMapping : ClassMap<FabricType>
    {
        public FarbicTypeMapping()
        {
            Table("FabricTypes");
            Id(x => x.Id, "FabricTypeID").UnsavedValue(0).GeneratedBy.Identity();
            Map(x => x.FabricTypeName, "FabricTypeName").Length(100).Not.Nullable();
        }
    }
}